package com.api.shopapi.service;

import com.api.shopapi.entity.ActivityPeople;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

@Service
public interface ActivityPeopleService {

    int insert(ActivityPeople activityPeople);

    int update(ActivityPeople activityPeople);

    int delete(String activityPeopleCode);

    ActivityPeople getByActivityPeopleCode(String activityPeopleCode);

    ActivityPeople getByPhone(String phone,String articleCode);

    ActivityPeople getByIdCard(String idCard,String articleCode);

    PageInfo<ActivityPeople> getPage(int pageIndex,int pageSize,String articleCode,String name);

    ActivityPeople getByElderlyCodeAndArticleCode(String elderlyCode,String articleCode);
}
